import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    port: 8080
  },
  resolve: {
    alias: {
      // @ 替代为 src
      '@': resolve('src'),
      // @component 替代为 src/component
      'components': resolve('src/components'),
    },
  }
})
